package com.kapiclientsdk;

import com.kapiclientsdk.client.KApiClient;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 *
 * @author kjwka
 */
@Configuration
@ConfigurationProperties("com.kapiclientsdk.client")
@Data
@ComponentScan
public class KApiClientConfig {

    private String accessKey;

    private String secretKey;

    @Bean
    public KApiClient kApiClient() {
        return new KApiClient(accessKey, secretKey);
    }

}
